package nc.impl.arap.ws;

import com.alibaba.fastjson.JSONObject;

import nc.bs.arap.op.ChangBxSettOP;
import nc.bs.arap.op.ChangPaySettOP;
import nc.bs.arap.op.ChangeCusSupOp;
import nc.bs.arap.op.ChangeDefdeptOp;
import nc.bs.arap.op.ChangeDeptOp;
import nc.bs.arap.op.ChangeOrgOp;
import nc.bs.arap.op.ChangePsnOp;
import nc.bs.arap.op.FileUploadOp;
import nc.itf.arap.ws.IRQServer;

public class RQServerImpl implements IRQServer{

	@Override
	public String chgOrg(String json) throws Exception {
		return new ChangeOrgOp().exec(json);
	}

	@Override
	public String changeDept(String json) throws Exception {
		return new ChangeDeptOp().exec(json);
	}

	@Override
	public String changeDefdept(String json) throws Exception {
		return new ChangeDefdeptOp().exec(json);
	}

	@Override
	public String changePsn(String json) throws Exception {
		return new ChangePsnOp().exec(json);
	}

	@Override
	public String changeCusSup(String json) throws Exception {
		return new ChangeCusSupOp().exec(json);
	}

	@Override
	public String custDosave__RequiresNew(JSONObject root) throws Exception {
		return new ChangeCusSupOp().doSave_Single(root);
	}

	@Override
	public String custDoassign__RequiresNew(JSONObject root, String voPk) throws Exception {
		return new ChangeCusSupOp().doAssign_Single(root, voPk);
	}
	
	@Override
	public String saveOAPaySett(String json) throws Exception {
		return new ChangPaySettOP().synSett(json);
	}

	@Override
	public String saveTMSBxSett(String json) throws Exception {
		return new ChangBxSettOP().synSett(json);
	}

	@Override
	public String fileUpload(String json) throws Exception {
		return new FileUploadOp().exec(json);
	}

	@Override
	public String hxdbCust(String json) throws Exception {
		return new nc.bs.arap.op.HxdbCustOp().exec(json);
	}
}
